﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using BookClubIt.Processor;

namespace BookClubIt
{
    public class WebService
    {
        AmazonProcessor amazonProcessor;
        public AmazonProcessor AmazonProcessorInstance
        {
            get
            {
                if (amazonProcessor == null) amazonProcessor = new AmazonProcessor();
                return amazonProcessor;
            }
        }

        BookProcessor bookProcessor;
        public BookProcessor BookProcessorInstance
        {
            get
            {
                if (bookProcessor == null) bookProcessor = new BookProcessor();
                return bookProcessor;
            }
        }

        BookClubProcessor bookClubProcessor;
        public BookClubProcessor BookClubProcessorInstance
        {
            get
            {
                if (bookClubProcessor == null) bookClubProcessor = new BookClubProcessor();
                return bookClubProcessor;
            }
        }
        MemberProcessor memberProcessor;
        public MemberProcessor MemberProcessorInstance
        {
            get
            {
                if (memberProcessor == null) memberProcessor = new MemberProcessor();
                return memberProcessor;
            }
        }
    }
}